﻿@model Core_Goods
@{
    ViewBag.ParentUrl = "/Goods/Edit";
    ViewBag.Title = "编辑商城宝贝";
}
@section header{
}
@section breadcrumb
{
    <ul class="breadcrumb">
        <li>
            <i class="ace-icon fa fa-home home-icon"></i>
            <a href="/">首页</a>
        </li>
        <li>
            <a href="/Goods/Index">商品管理</a>
        </li>
        <li class="active">@ViewBag.Title</li>
    </ul><!-- .breadcrumb -->
}
<div class="col-sm-10">

    <form class="form-horizontal" role="form" id="frm" method="POST" novalidate="novalidate" action="/Goods/Edit">
        <div class="space-4"></div>
        <div class="form-group">
            <h4 class="header blue">详情描述</h4>
            <!-- 加载编辑器的容器 -->
            @Html.TextAreaFor(o => o.G_Content)
        </div>
        <div class="clearfix form-actions">
            <div class="col-md-offset-3 col-md-9">
                <button class="btn btn-info" type="submit">
                    <i class="ace-icon fa fa-check bigger-110"></i>
                    提交
                </button>
                &nbsp; &nbsp; &nbsp;
                <button class="btn" type="reset">
                    <i class="ace-icon fa fa-undo bigger-110"></i>
                    重置
                </button>
            </div>
        </div>
        <div class="hr hr-24"></div>
    </form>
</div><!-- /.span -->
@section footerScript
{

    <script src="/assets/js/validation/jquery-html5Validate.js"></script>
    <!--富文本编辑器  配置文件 -->
    <script type="text/javascript" src="/assets/js/editor/xheditor.min.js"></script>
    <script type="text/javascript" src="/assets/js/editor/xheditor_lang/zh-cn.js"></script>
    <script src="/js/common.js"></script>
}
@section footer
{
    <script>

        $('#G_Content').xheditor({
            tools: 'full',
            width: '98%',
            height: '320px',
            upImgUrl: '/Editor/UploadFile',
            upImgExt: 'jpg,jpeg,gif,png'
        });

        $("#frm").html5Validate(function () {
            this.submit();
        }, {
            // novalidate: false,
            // labelDrive: false
        });

    </script>
}
